package com.wgchao.authmanager.infrastructure.jpa.repository;

import com.wgchao.authmanager.infrastructure.jpa.entity.UserRoleInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleJpaRepository extends JpaRepository<UserRoleInfo, Long>, JpaSpecificationExecutor<UserRoleInfo> {
    void deleteAllByUname(String uname);
    List<UserRoleInfo> findAllByUname(String uname);
}
